﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DotSpatial.Controls ;

namespace HaGisPack
{
    /// <summary>
    /// 这个类用作所有自定义绘制的基类，包括各种图形
    /// </summary>
   public  class FMapFunctionBase : MapFunction
    {

      

       public FMapFunctionBase()
       { 
       }

       public FMapFunctionBase(IMap map)
           : base(map)
       { 
       
       }


       public void OnShapeAdded(FShape shp)
       {

           this.Parent.AskShapeAdd(shp);

       }

       public void OnShapeChanged(FShape shp)
       {
           this.Parent.AskShapeChanged(shp);
       }

       public void OnShapeRemoved(FShape shp)
       {
           this.Parent.AskShapeRemoved(shp);
       }


       public void OnShapeCopyed(FShape shp)
       {
           this.Parent.AskShapeCopyed(shp);
       }


       private MFSystem  m_Manager;
       public MFSystem Parent
       {
           get { return m_Manager; }
           set { m_Manager = value; }
       }


    }
}
